package com.project.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @author mengxj
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_user")
public class User extends BaseEntity {

    @ApiModelProperty("名称")
    private String username;

    @ApiModelProperty("性别")
    private Integer gender;

    @ApiModelProperty("年龄")
    private Integer age;

    @ApiModelProperty("用户登录标识")
    private String loginId;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("省")
    private String province;

    @ApiModelProperty("市")
    private String city;

    @ApiModelProperty("区")
    private String district;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("真实密码")
    private String realPassword;

    @ApiModelProperty("是否在线")
    private Integer online;

    @ApiModelProperty("上次登录时间")
    private LocalDateTime lastLogin;
}
